<template>
    <div class="page-webMConfig">
    <wl-panel  :title="title" subTitle="" :titleIcon="titleIcon">
        <template v-if="footerFlag" slot="panel_footer">
            <el-button @click="continueConfig" >继续新增</el-button>
            <el-button @click="editConfig" type="primary">保存</el-button>
        </template>
        <template slot="panel_body">
          <el-form :model="formData" status-icon ref="webMConfigForm" label-width="110px" class="demo-ruleForm">
            <wl-form-inner subTitle="基本信息">
                <template slot="inner_body">
                    <div class="wl-row">
                         <wl-form-item label="配置项" prop="config_type"  :itemData="formData">
                            <wl-select slot="input" slot-scope="col" :itemData="itemData" type="config_type" @selectChange="configChange" :code="featureCode" :rawData="col.columnData"></wl-select>
                        </wl-form-item>
                        <wl-form-item label="类型" prop="handle_type"  :itemData="formData">
                            <wl-select slot="input" slot-scope="col" type="handle_type" :code="featureCode" :rawData="col.columnData"></wl-select>
                        </wl-form-item>
                    </div>
                    <div class="wl-row">
                         <wl-form-item label="是否必须操作" prop="shi"  :itemData="formData">
                            <wl-select slot="input" slot-scope="col" type="shi" code="com.wlfun.web.model.ShiFou" :rawData="col.columnData"></wl-select>
                        </wl-form-item>
                        <wl-form-item  label="iframe配置" prop="config_frame" :importance="false"  :itemData="formData">
                            <wl-input   slot="input" slot-scope="col" class="wl-input-item" :rawData="col.columnData" field="config_frame" placeholder="输入iframe配置"></wl-input>
                        </wl-form-item>
                    </div>
                    <div class="wl-row">
                        <wl-form-item  label="页面ID" prop="index_id"   :itemData="formData">
                            <wl-input  setW=470  slot="input" slot-scope="col" class="wl-input-item" :rawData="col.columnData" field="index_id" placeholder="输入页面ID"></wl-input>
                        </wl-form-item>
                    </div>
                    <div class="wl-row">
                        <wl-form-item class="wl-form-item-full-row" label="配置值" :importance="false"  prop="value" :itemData="formData">
                            <wl-input :disabled="isOther"  setW=470 slot="input" class="wl-input-item" slot-scope="col" placeholder="输入配置值" :rawData="col.columnData" field="value"></wl-input>
                        </wl-form-item>
                    </div>
                    <div class="wl-row">
                        <wl-form-item class="wl-form-item-full-row" label="备注" :importance="false"  prop="remark" :itemData="formData">
                            <wl-input setW=470 slot="input" class="wl-input-item" slot-scope="col" placeholder="输入备注" :rawData="col.columnData" field="remark"></wl-input>
                        </wl-form-item>
                    </div>
                </template>
            </wl-form-inner>
          </el-form>
        </template>
    </wl-panel>
    </div>  
</template>
<script lang="ts" src="./webM_config_panel.ts"></script>
<style scoped>
.form-linefeed {
  margin: 10px 0;
}

.page {
  /* height: 85vh;
  width: 920px;
  overflow-y: scroll; */
}
</style>
